import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import 'virtual:uno.css'
import router from '@/router'

import * as ElementPlusIconsVue from '@element-plus/icons-vue' //引入图标
import 'element-plus/dist/index.css' //引入样式

// import ECharts from 'vue-echarts' // 引入ECharts
// import 'echarts' // 全局引入echarts
// // 全局注册组件（也可以使用局部注册）
// createApp(App).component('ECharts', ECharts)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  createApp(App).component(key, component)
}

createApp(App).use(router).mount('#app')
